{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">打卡内容：</label>
                                    <div class="col-sm-9">
                                        <input name="content" type="text" class="form-control" value="">
                                    </div>
                                </div>
                                    
                                <div class="form-group" id="videoDiv">
                                    <label class="col-sm-2 control-label">视频：</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <video src="" volume="0.5" controls preload="true" playsinline webkit-playsinline="webkit-playsinline" x-webkit-airplay="allow" style="max-width: 200px;" id="video">您的浏览器不支持播放本视频</video>
                                            <input name="video" type="hidden"  id="videoval" class="form-control" value="">
                                            <span class="input-group-btn" id="videowatch">
                                                <button type="button" class="btn btn-primary" id="videos">上传</button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group" id="coverDiv">
                                    <label class="col-sm-2 control-label">封面：</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <img src="__IMG__add_img.png" id="imageimg" style="max-width: 200px">
                                            <input name="cover" type="hidden"  id="image" class="form-control" value="">
                                            <span class="input-group-btn">
                                                <button type="button" class="btn btn-primary" id="tubiao">上传</button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
    function msg(){
        layer.msg("上传成功")
    }
    $("#videos").click(function(){
        //  layer.msg('演示站无权操作！')
        // return;
        layer.open({
            type: 2,
            title: '上传视频',
            shadeClose: true,
            shade: 0.2,
            area: ['70%', '60%'],
            skin:'shangchuantup',
            content: '{:url("index/videoUploads")}',
            shift:-1,
            scrollbar: false,
            moveType: 1,
            moveOut: true
        });
    })

</script>
{include file="public/bottom" /}
